<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head style="height: 100%">
 <script type="text/javascript" src="./js/jquery.min.js"></script>
<style type="text/css">
html{
background-color:#ECFFFF;
}   
</style>
<script type="text/javascript">
function beforeSubmit(form){
if(form.name.value==''){
alert('用户名不能为空！');
form.name.focus();
return false;
}
if(form.password.value=='') {
alert('密码不能为空！');
form.password.focus();
return false;
}
return true;
}
</script>  
</head>

<body >
<h1></h1>
<form action="user.do?method=denglu"  name="form" method='post' onSubmit="return beforeSubmit(this);">
<div style="margin-left:550px; margin-top:250px; height:600px; width:370px;">

<td>姓名：<input id="name"  type="text" name="login_name" />
<font  size="2" color="red">
		<!-- 首先判断name1是否为空，如果不为空的话，就显示出来 -->
<c:if test="${not empty msgc}">
<br/><c:out value="${msgc}" escapeXml="false"/>
</c:if>
</font>
</td></br>
密码：<input style="margin-left:1px; margin-top:15px "; id="password" type="password" name="login_passwd" /></br>  
<input id="tijiao" type="submit"  name="button" value="提交"/>
<!-- <input type="reset"  name="button2"  value="清空"/> -->
<button  style="margin-left:120px; margin-top:22px ";type="button"><a href="zhuce.jsp">注册</a></button>
</div>
</form>
</body>
</html>
